package com.zmj.service.impl;

import com.zmj.entity.User;
import com.zmj.mapper.UserMapper;
import com.zmj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    public User checkName(String userName) {
        return userMapper.checkName(userName);
    }

    public boolean register(User user) {
        return userMapper.register(user);
    }
}
